import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useTabbarStore = defineStore(
  'tabble',
  () => {
    const current = ref(0);
    const setCurrent = (val: number) => {
      current.value = val;
    };
    return {
      current,
      setCurrent,
    };
  },
  {
    persist: true,
  },
);
